//
//  NSUserDefaults+Function.m
//  u76ho
//
//  Created by m-air-01 on 15/12/30.
//  Copyright © 2015年 LV. All rights reserved.
//

#import "NSUserDefaults+Function.h"

@implementation NSUserDefaults (Function)
+ (void)setBool:(BOOL)value forKey:(NSString *)defaultName{
    
    [NSUSERDEFAUTS setBool:value forKey:defaultName];
    DEFAULTS_SYNCHRONIZE;
}
+ (BOOL)boolForKey:(NSString *)defaultName{
    return [NSUSERDEFAUTS boolForKey:defaultName];
}
+ (void)setObject:(id)value forKey:(NSString *)defaultName{
    [NSUSERDEFAUTS setObject:value forKey:defaultName];
    DEFAULTS_SYNCHRONIZE;
}
+ (id)objectForKey:(NSString *)defaultName{
    return [NSUSERDEFAUTS objectForKey:defaultName];
}
+ (void)removeObjectForKey:(NSString *)key{
    [NSUSERDEFAUTS removeObjectForKey:key];
}

@end
